<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>CSS样式优先级</title>
</head>
<style>
    p{
        color: blue;
    }
    /*行内样式>内部样式表>外部样式表*/
    /*就近原则*/

</style>
<link rel="stylesheet" href="css/main.css">
<body>
<p style="color: red">床前明月光</p>
</body>
</html>